package com.foreknow.dao.impl;

import com.foreknow.bean.Book;
import com.foreknow.dao.BookDao;

public class BookDaoImpl extends BaseDao implements BookDao {
    @Override
    public boolean Update(Book book) {
        String sql = "UPDATE book SET price = ? WHERE name = ?";
        int isRight = jdbcTemplate.update(sql,book.getPrice(),book.getName());
        return isRight==1;
    }
}
